public class Main {

    public static void main(String[] args) {


        Widget w = new ChildWidget();
        w.doSth();


        Counter counter = new Counter();

        new Thread(new Runnable() {
            @Override
            public void run() {
                counter.add();
            }
        }).start();

        new Thread(new Runnable() {
            @Override
            public void run() {
                counter.add();
            }
        }).start();
        new Thread(new Runnable() {
            @Override
            public void run() {
                counter.add();
            }
        }).start();


    }
}
